package models

type ScrumModel struct {
	ScrumId            int    `gorm:"column:scrum_id"`
	CreateTime         string `gorm:"column:create_time"`
	ScrumDetail        string `gorm:"column:scrum_detail"`
	ScrumUser          string `gorm:"column:scrum_user"`
	ScrumStatus        string `gorm:"column:scrum_status"`
	AllocateUser       string `gorm:"column:allocate_user"`
	ExpirationDatetime string `gorm:"column:expiration_datetime"`
}

func NewScrumModel(scrumDetail, scrumUser, scrumStatus, allocateUser, expiration_datetime string) *ScrumModel {
	return &ScrumModel{
		ScrumDetail:  scrumDetail,
		ScrumUser:    scrumUser,
		ScrumStatus:  scrumStatus,
		AllocateUser: allocateUser,
		ExpirationDatetime: expiration_datetime,
	}
}

func (s *ScrumModel) TableName() string {
	return "scrum"
}
